package com.beiben.ability.people.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 考试记录对象 ability_exam_record
 *
 * @author dulei
 * @date 2020-08-24
 */
public class Record extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long recordId;

    /** 考试名称 */
    @Excel(name = "考试名称")
    private String recordName;

    /** 考试类型 */
    private Integer recordType;

    @Excel(name = "考试类型")
    private String recordTypeStr;

    /** 所属科室 */
//    @Excel(name = "所属科室")
    private String deptId;

    /** 所属科室名称 */
    @Excel(name = "所属科室")
    private String deptName;

    /** 平均分数 */
    @Excel(name = "平均分数")
    private String avgScore;

    /** 考试时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "考试时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date examTime;

    /*用户昵称（搜索条件）*/
    @Excel(name = "人员名称")
    private String nickName;

    @Excel(name = "人员编号")
    private String userName;

    /** 分数 */
    @Excel(name = "分数")
    private Double score;

    /** 评级 */
    @Excel(name = "评级")
    private String rating;

    public void setRecordId(Long recordId)
    {
        this.recordId = recordId;
    }

    public Long getRecordId()
    {
        return recordId;
    }
    public void setRecordName(String recordName)
    {
        this.recordName = recordName;
    }

    public String getRecordName()
    {
        return recordName;
    }
    public void setRecordType(Integer recordType)
    {
        this.recordType = recordType;
    }

    public Integer getRecordType()
    {
        return recordType;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public void setExamTime(Date examTime)
    {
        this.examTime = examTime;
    }

    public Date getExamTime()
    {
        return examTime;
    }

    public String getAvgScore() {
        return avgScore;
    }

    public void setAvgScore(String avgScore) {
        this.avgScore = avgScore;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public String getRating() {
        return rating;
    }

    public void setRating(String rating) {
        this.rating = rating;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("recordName", getRecordName())
            .append("recordType", getRecordType())
                .append("deptId", getDeptId())
                .append("deptName", getDeptName())
            .append("examTime", getExamTime())
                .append("avgScore", getAvgScore())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
            .toString();
    }
}
